//
//  CBCConnerView.m
//  CBCChannelControl
//
//  Created by 李雷川 on 2019/7/1.
//  Copyright © 2019 李雷川. All rights reserved.
//

#import "CBCConnerView.h"

@implementation CBCConnerView
-(void)drawRect:(CGRect)rect{
    [super drawRect:rect];
    UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:UIRectCornerTopRight|UIRectCornerTopLeft cornerRadii:CGSizeMake(20, 20)];
    CAShapeLayer *maskLayer = [CAShapeLayer new];
    maskLayer.frame = self.bounds;
    maskLayer.path = path.CGPath;
    self.layer.mask =  maskLayer;

}
@end
